FROM java:8-jre
MAINTAINER Dong Qun <dong0070916@126.com>

VOLUME /tmp

#ADD target/docker-demo.jar docker-demo.jar
COPY target/docker-demo.jar docker-demo.jar

EXPOSE 12345

#RUN bash -c "touch /docker-demo.jar"
#CMD ["java", "-Xmx200m", "-jar", "/app/docker-demo.jar"]
ENTRYPOINT ["java", "-Xmx200m", "-jar", "/docker-demo.jar"]